package com.szrt.java.day20170113.ch06;

public class FlyCar {
	
	private SwimCar car;

	public FlyCar(SwimCar car){
		this.car = car;
	}
	
	/*public void setCar(SwimCar car) {
		this.car = car;
	}*/
	
	public void fly(){
		System.out.println("在天上飞");
	}
	
	public void drive(){
		//1 在陆地上开车...
		//2 在水中游...
		car.drive();
		//3 在天上飞
		fly();
	}

}
